using System.Collections;
using System.Collections.Generic;
using BehaviorDesigner.Runtime;
using BehaviorDesigner.Runtime.Tasks;
using QFramework;
using UnityEngine;
using DG.Tweening;

namespace HareGame
{
    [TaskCategory("引导")]
    public class SetTimescale : Action
    {
        [Header("游戏加速倍数")]
        public float scale = 1;

        public override TaskStatus OnUpdate()
        {
            Time.timeScale = scale;
            return TaskStatus.Success;
        }
    }
}